#ifndef OBJECT_TREE_ITEM_H
#define OBJECT_TREE_ITEM_H

#include "src/object.h"
#include "treeItem.h"

#include <QTreeWidgetItem>
#include <QMainWindow>

class ObjectTreeItem : public TreeItem {
	Q_OBJECT

    public:
        ObjectTreeItem(QTreeWidgetItem * = 0, Object * = NULL, QMainWindow * = NULL);
        ~ObjectTreeItem();

        void updateObject(Object * = NULL);
        Object *getObject();

    public slots:
        void select();

    signals:
        void selected(Object *);
//        void deselected(Object *);

    private:
        void updateTetrahedrons();
        void updateFaces();
        void updateEdges();
        void updateVerteces();

        Object *obj;
        QMainWindow *win;
};

#endif

